package org.reyton.entity;
// Generated 2016-11-30 16:19:22 by Hibernate Tools 5.2.0.Beta1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * BizCheckResult generated by hbm2java
 */
@Entity
@Table(name = "BIZ_CHECK_RESULT", catalog = "jboa")
public class BizCheckResult implements java.io.Serializable {

	private Integer id;
	private SysEmployee sysEmployee;
	private String sheetType;
	private int sheetId;
	private Date checkTime;
	private String type;
	private String result;
	private String comm;

	public BizCheckResult() {
	}

	public BizCheckResult(SysEmployee sysEmployee, String sheetType, int sheetId, Date checkTime, String type,
			String result, String comm) {
		this.sysEmployee = sysEmployee;
		this.sheetType = sheetType;
		this.sheetId = sheetId;
		this.checkTime = checkTime;
		this.type = type;
		this.result = result;
		this.comm = comm;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "CHECKER_SN", nullable = false)
	public SysEmployee getSysEmployee() {
		return this.sysEmployee;
	}

	public void setSysEmployee(SysEmployee sysEmployee) {
		this.sysEmployee = sysEmployee;
	}

	@Column(name = "SHEET_TYPE", nullable = false, length = 20)
	public String getSheetType() {
		return this.sheetType;
	}

	public void setSheetType(String sheetType) {
		this.sheetType = sheetType;
	}

	@Column(name = "SHEET_ID", nullable = false)
	public int getSheetId() {
		return this.sheetId;
	}

	public void setSheetId(int sheetId) {
		this.sheetId = sheetId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CHECK_TIME", nullable = false, length = 19)
	public Date getCheckTime() {
		return this.checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	@Column(name = "TYPE", nullable = false, length = 50)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "RESULT", nullable = false, length = 50)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	@Column(name = "COMM", nullable = false, length = 500)
	public String getComm() {
		return this.comm;
	}

	public void setComm(String comm) {
		this.comm = comm;
	}

}
